﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace TData
{
    public class TDbParameter
    {
        public TDbParameter() { }
        public TDbParameter(string parameterName, DbType dbType, object value)
        {
            this.ParameterName = parameterName;
            this.DbType = dbType;
            this.Value = value;
        }
        public TDbParameter(string parameterName, DbType dbType, object value, ParameterDirection direction)
            : this(parameterName, dbType, value)
        {
            this.Direction = direction;
        }
        public TDbParameter(string parameterName, DbType dbType, object value, ParameterDirection direction, int size)
            : this(parameterName, dbType, value, direction)
        {
            this.Size = size;
        }

        public DbType DbType { get; set; }
        public ParameterDirection Direction { get; set; }
        public string ParameterName { get; set; }
        public int Size { get; set; }
        public object Value { get; set; }
    }
}
